#include <stdio.h>
int main()
{
    float n;
    float rate;
    printf("请输入营业额(万元):");
    int ret = scanf("%f", &n);
    if (ret != 1)
    {
        printf("数据异常！");
        return 0;
    }

    if (n >= 100)
    {
        rate = 0.01;
    }
    else if (n >= 60)
    {
        rate = 0.015;
    }
    else if (n >= 40)
    {
        rate = 0.03;
    }
    else if (n >= 20)
    {
        rate = 0.05;
    }
    else if (n >= 10)
    {
        rate = 0.075;
    }
    else if (n >= 0)
    {
        rate = 0.1;
    }
    else
    {
        printf("就这还能不赚钱？");
    }
    printf("加盟费：%.3f*%.3f=%.3f(万元)", n, rate, n * rate);
}